package mortal.game.control
{
    import Message.Game.*;
    import com.mui.controls.*;
    import mortal.game.events.*;
    import mortal.game.manager.*;
    import mortal.game.mvc.*;
    import mortal.game.view.common.alertwins.*;
    import mortal.game.view.issm.*;
    import mortal.game.view.msgbroad.*;
    import mortal.mvc.core.*;

    public class IssmController extends Controller
    {
        private var firstWarning:Boolean = false;
        private var messageStr:String;
        private var _issmHintIcon:SIssmHintIcon;

        public function IssmController()
        {
            this._issmHintIcon = new SIssmHintIcon();
            
        }

        override protected function initServer() : void
        {
            NetDispatcher.addCmdListener(ServerCommand.IssmUpdata, this.showIssmPanel);
            Dispatcher.addEventListener(EventName.IssmVerified, this.issmVerified);
            
        }

        private function issmVerified(event:DataEvent) : void
        {
            this._issmHintIcon.hideHint();
            MsgManager._msgIssmImpl.removeAllItem();
            
        }

        private function showIssmPanel(param1:Object) : void
        {
            var str:String;
            var issmNoticeItem:IssmNoticItem;
            var closeHandler1:Function;
            var _obj:* = param1;
            var obj:* = _obj as SIssmMsg;
            switch(obj.onlineHour)
            {
                case 0:
                {
                }
                case 1:
                {
                    break;
                }
                case 2:
                {
                    break;
                }
                case 3:
                {
                    break;
                }
                case 5:
                {
                    break;
                }
                case 7:
                {
                }
                case 9:
                {
                    break;
                }
                default:
                {
                    break;
                    break;
                }
            }
            
        }

    }
}
